package model

type ArticleTagRel struct {
	ID        uint64 `gorm:"primaryKey;autoIncrement;comment:'id'" json:"id"`
	ArticleID uint64 `gorm:"type:bigint unsigned;not null;comment:'文章id';index:idx_article_id" json:"article_id"`
	TagID     uint64 `gorm:"type:bigint unsigned;not null;comment:'标签id';index:idx_tag_id" json:"tag_id"`
}

func (ArticleTagRel) TableName() string {
	return "t_article_tag_rel"
}
